<?php $this->load->view('proceed/header'); ?>
<div id="container">
    <div class="navigation">
        <?php echo $this->navigation; ?>
    </div>
    <dl class="lines">
        <dt><h1><?php echo $answers_detail['answers_title']; ?></h1></dt>
        <dd>
            <?php echo $answers_detail['answers_content']; ?><span class="right">{<?php echo date('Y-m-d', $answers_detail['answers_mdtime']).'}@'.$answers_detail['screenName']; ?></span></dd>
    </dl>
    <div class="subject">
        <div class="reply">
        <?php echo form_open('answers/do_save_reply'); ?>
            <input type="hidden" name="answers_id" value="<?php echo $answers_detail['answers_id']; ?>" />
            <?php if($this->session->userdata('uid')): ?>
            <input type="hidden" name="answers_name" value="<?php echo $answers_detail['screenName']; ?>" />                
            <input type="hidden" name="answers_mail" value="<?php echo $answers_detail['mail']; ?>" />                
            <input type="hidden" name="answers_url" value="<?php echo $answers_detail['url']; ?>" />                
            <?php else: ?>
            <dl>
                <dt><label for="answers_name"><?php echo lang('answers_name'); ?></label></dt>
                <dd><input type="text" name="answers_name" /></dd>
            </dl>
            <dl>
                <dt><label for="answers_mail"><?php echo lang('answers_mail'); ?></label></dt>
                <dd><input type="text" name="answers_mail" /></dd>
            </dl>
            <dl>
                <dt><label for="answers_url"><?php echo lang('answers_url'); ?></label></dt>
                <dd><input type="text" name="answers_url" /></dd>
            </dl>
            <?php endif; ?>
            <dl>
                <dt><label for="answers_content_answer"><?php echo lang('answers_content_answer'); ?></label></dt>
                <dd><textarea name="answers_content" class="texts"></textarea></dd>
            </dl>
            <dl>
                <dt><label>&nbsp;</label></dt>
                <dd><input class="input-submit" type="submit" value="<?php echo lang('submit'); ?>" /></dd>
            </dl>
        </form>
        </div>
        <div class="answer">
            <h3><?php echo lang('answers_new'); ?></h3>
            <ul>
            <?php foreach($answers_comments as $ac): ?>
                <li>
                    <span>
                        <?php echo (empty($ac['author'])?$ac['screenName']:$ac['author']); ?>:
                    </span>
                    <span class="date">
                        {<?php echo date('Y-m-d', $ac['cdtime']); ?>}
                    </span>
                    <p><?php echo $ac['text']; ?></p>
                </li>
            <?php endforeach; ?>
            </ul>
        </div>
    </div>
    <div class="body">
        <div class="box">
            <?php echo $merchandises; ?>
        </div>
        <div class="box">
            <?php echo $answers; ?>
        </div>
        <div class="box last">
            <?php echo $placesymbols; ?>
        </div>
    </div>
    
    <div class="body">
        <div class="box">
            <?php echo $news; ?>
        </div>
        <div class="box">
            <?php echo $culture; ?>
        </div>
        <div class="box last">
            <?php echo $policy; ?>
        </div>
    </div>

<?php $this->load->view('proceed/fooder'); ?>
</div>

</body>
</html>